package com.codegeek.project.slope.controller;

import com.codegeek.common.utils.DateUtils;
import com.codegeek.framework.web.domain.AjaxResult;
import com.codegeek.framework.web.page.TableDataInfo;
import com.codegeek.project.slope.domain.SlopeAlarm;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/public")
@Api(value="公共接口",tags={"系统公共接口"})
public class SlopePublicController {

    /**
     * 查询系统运行时间
     */
    @ApiOperation("查询系统运行时间")
    @GetMapping("/getSysRunTime")
    public AjaxResult getSysRunTime()
    {
        Map<String,Object> map = new HashMap<>();
        map.put("runtime", DateUtils.getServerStartDate());
        return AjaxResult.success("获取成功",map);
    }
}
